// component/salary-management/index.js
Component({
  /**
   * 组件的属性列表
   */
  options: {
    styleIsolation: "shared",
    active: 1
  },
  properties: {},

  /**
   * 组件的初始数据
   */
  data: {
    active: 0
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 搜索小工姓名、手机号码
    onSearch() {
      let salaryList = this.selectComponent(".salaryList");
      salaryList && salaryList.init();
    },
    onChangeTab(e) {
      this.setData({
        active: e.detail.index
      });
    },
    onPullDownRefresh() {
      let salaryList = this.selectComponent(".salaryList");
      salaryList && salaryList.init();
    },
    onReachBottom() {
      // this.getData()
    }
  }
});
